package com.distributer.order.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.distributer.order.db.TargetDataSource;
import com.distributer.order.model.Order;

@Mapper
public interface OrderMapper {

	@TargetDataSource
    int insert(Order order);
	@TargetDataSource
    int update(Order order);
	@TargetDataSource
	void updateOrderStatusByOrderItemCreateResult(@Param("orderNo")String orderNo, @Param("orderStatus")int orderStatus);
	@TargetDataSource
	Order queryOrderByOrderNo(String orderNo);
}
